package com.example.othree.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.othree.common.R;
import com.example.othree.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.othree.mapper.DroneManagementMapper;
import org.springframework.security.core.userdetails.UserDetails;

import javax.annotation.Resource;

public interface UserService extends IService<User>
{

    UserDetails loadUserByEmail(String email);

    User getUserByEmail(String email);

    String login(String email, String password);

    String refreshToken(String oldToken, String email);


    IPage PageList(IPage<User> page, Wrapper wrapper);

}
